-- GENERATED SPELL FOR [Ironspine Forgelord] --


function spell0_20928(pUnit, Event) --@Detonate Teleporter,n/a--
pUnit:FullCastSpellOnTarget(38920,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20928', 15000, 1)
end

function spell1_20928(pUnit, Event) --@Hammer Slam,n/a--
pUnit:FullCastSpellOnTarget(36251,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20928', 598, 1)
end

function spell2_20928(pUnit, Event) --@Hammer Slam,n/a--
pUnit:FullCastSpellOnTarget(37179,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20928', 900, 1)
end

function spell3_20928(pUnit, Event) --@Toughen,Self--
pUnit:FullCastSpellOnTarget(33962,pUnit)
pUnit:RegisterEvent('Sorts_20928', 600, 1)
end

function Sorts_20928(pUnit, Event)
local choix_sorts_20928 = math.random(0, 3)
if choix_sorts_20928 == 0 then
pUnit:RegisterEvent('spell0_20928', 1, 1)
end
if choix_sorts_20928 == 1 then
pUnit:RegisterEvent('spell1_20928', 1, 1)
end
if choix_sorts_20928 == 2 then
pUnit:RegisterEvent('spell2_20928', 1, 1)
end
if choix_sorts_20928 == 3 then
pUnit:RegisterEvent('spell3_20928', 1, 1)
end
end

function mob20928_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20928', math.random(1500, 3000), 1)
end

function mob20928_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20928_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20928_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20928, 1, 'mob20928_Action')
RegisterUnitEvent(20928, 2, 'mob20928_Leave')
RegisterUnitEvent(20928, 3, 'mob20928_Kill')
RegisterUnitEvent(20928, 4, 'mob20928_Die')
